import request from '@/utils/request'

//获取工作列表
export function getJobsApi() {
  return request({
    url: '/web3j/qingongjianxue/jobs',
    method: 'get'
  })
}

//发布工作
export function pushJobApi(data) {
  return request({
    url: '/web3j/qingongjianxue/job/publish',
    method: 'post',
    params: data
  })
}


//获取所有公司列表
export function getCompanysApi() {
  return request({
    url: '/web3j/qingongjianxue/companies',
    method: 'get'
  })
}

//注册公司
export function registerCompanyApi(data) {
  return request({
    url: '/web3j/qingongjianxue/company/register',
    method: 'post',
    params: data
  })
}
//获取公司详细信息
export function getCompanyInfoApi(address) {
  return request({
    url: `/web3j/qingongjianxue/company/${address}`,
    method: 'get',

  })
}

//申请工作
export function applyJobApi(data) {
  return request({
    url: '/web3j/qingongjianxue/job/apply',
    method: 'post',
    params: data
  })
}

//注册学生
export function registerStudentApi(data) {
  return request({
    url: '/web3j/qingongjianxue/student/register',
    method: 'post',
    params: data
  })
}
//获取学生信息
export function getStudentInfoApi(address) {
  return request({
    url: `/web3j/qingongjianxue/student/${address}`,
    method: 'get',

  })
}
//获取学生当前工作
export function getStudentJobApi(address) {
  return request({
    url: `/web3j/qingongjianxue/student/${address}/current-jobs`,
    method: 'get',
  })
}

//获取企业信息

